import { request } from '@/utils/request.js'

export function getGoodsListByType(data) {
	return request({
		url: "/api/goods/type/getGoodsListByType",
		data: JSON.stringify(data)
	});
}

export function getSearchGoodsDetail(data) {
	return request({
		url: "/api/goods/getSearchGoodsDetail",
		data: JSON.stringify(data)
	});
}

export function getGoodsMore(data) {
	return request({
		url: "/api/goods/getGoodsMore",
		method: 'post',
		data: data
	});
}

export function addCollect(data) {
	return request({
		url: "/api/system/addCollect",
		method: 'post',
		data: data
	});
}

export function getSearchGoodsByKeywords(data) {
	return request({
		url: "/api/goods/getSearchGoodsByKeywords",
		data: JSON.stringify(data)
	});
}